home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 63142 / 63142.xpi / older / tkp24.xpi / chrome / content / overlay.js < prev   
Text File  |  2010-01-24  |  658b  |  22 lines

  1. var ketkpin = {
  2.   onLoad: function() {
  3.     // initialization code
  4.     this.initialized = true;
  5.     this.strings = document.getElementById("ketkpin-strings");
  6.   },
  7.  
  8.   onMenuItemCommand: function(e) {
  9.       var my_url=window.content.location.href;
  10.       alert(my_url);
  11.       window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url);
  12.      // window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
  13.   },
  14.  
  15.   onToolbarButtonCommand: function(e) {
  16.     // just reuse the function above.  you can change this, obviously!
  17.     ketkpin.onMenuItemCommand(e);
  18.   }
  19. };
  20.  
  21. window.addEventListener("load", ketkpin.onLoad, false);
  22.